<!--创建相册弹窗-->
<dl class="pop_create_album">
        <dt>
            <label>{$ts['app']['app_alias']}名称：</label>
            <input  name="name" type="text" class="TextH20" id="name"  style="width:300px;" onfocus="this.className='Text2'" onblur="this.className='TextH20'" maxlength="20" />
        </dt>
        <dd>
            <label>访问权限：</label>
            <select name="privacy" id="privacy" onchange="javascript:changePrivacy(this);">
                <option value="1">所有人可见</option>
                <option value="2">关注的可见</option>
                <option value="3">仅自己可见</option>
                <option value="4">凭密码访问</option>
            </select>
        </dd>
        <dd id="need_password" style="display:none;">
            <label>设置密码：</label>
            <input name="privacy_data" type="text" class="TextH20" id="textfield3" style="width:300px;" onblur="this.className='TextH20'" onfocus="this.className='Text2'" />
        </dd>
        <dd>
            <label>&nbsp;</label>
            <input type="button" onclick="do_create_album()" class="btn_b" value="确定">
        </dd>
</dl>
<!--End 创建相册弹窗-->
<script type="text/javascript">
function changePrivacy(obj){
	if(obj.value==4){
		$('#need_password').show();
	}else{
		$('#need_password').hide();
	}
}
</script>